<template>
  <div>
    <ul>
      <li v-for="(item, index) in arr" :key="index">
        {{ index }} --- {{ item }}
      </li>
    </ul>
    <p v-for="(value, key) in obj" :key="key">{{ key }} --- {{ value }}</p>
    <ul>
      <li v-for="(item, index) in 10" :key="index">
        {{ index }} --- 我是老{{ item }}
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  data() {
    return {
      arr: ["唱", "跳", "rap", "篮球"],
      obj: {
        name: "坤坤",
        age: 18,
        get: "守护最好的坤坤",
      },
    };
  },
};
</script>

<style>
</style>